

<%@ page import="com.portico.dept.solarch.ProjectStatusComment" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="thin" />
        <g:set var="entityName" value="${message(code: 'projectStatusComment.label', default: 'ProjectStatusComment')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        %{--<div class="nav">--}%
            %{--<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>--}%
            %{--<span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>--}%
        %{--</div>--}%
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${projectStatusCommentInstance}">
            <div class="errors">
                <g:renderErrors bean="${projectStatusCommentInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="commentType"><g:message code="projectStatusComment.commentType.label" default="Comment Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectStatusCommentInstance, field: 'commentType', 'errors')}">
                                    <g:select name="commentType" from="${projectStatusCommentInstance.constraints.commentType.inList}" value="${projectStatusCommentInstance?.commentType}" valueMessagePrefix="projectStatusComment.commentType"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="commentDescription"><g:message code="projectStatusComment.commentDescription.label" default="Comment Description" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectStatusCommentInstance, field: 'commentDescription', 'errors')}">
                                    <g:textArea name="commentDescription" value="${projectStatusCommentInstance?.commentDescription}" cols="40" rows="40" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="commentDate"><g:message code="projectStatusComment.commentDate.label" default="Comment Date" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: projectStatusCommentInstance, field: 'commentDate', 'errors')}">
                                    <g:datePicker name="commentDate" precision="day" value="${projectStatusCommentInstance?.commentDate}"  />
                                </td>
                            </tr>

                            <g:hiddenField name="status.id" value="${request.getParameter('projectStatus.id')}"/>

                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
